using UnityEngine;
using System.Collections;

public class HealthInfo : MonoBehaviour {
	
	public float StartingHealth = 100.0f;
	public bool GodMode = false;
	
	public float Health
	{
		get { return currHealth; }
	}
	public bool IsAlive
	{
		get { return currHealth > 0.0f; }
	}
	
	private float currHealth;
	
	public void ApplyDamage(float damage)
	{
		if(!GodMode)
		{
			currHealth -= damage;
            Debug.Log("Entity damaged for " + damage + " damage");
		}
	}
	
	// Use this for initialization
	void Start () {
		currHealth = StartingHealth;
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
